home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / stdafx.h10 < prev    next >
Encoding:
Text File  |  2006-12-21  |  3.7 KB  |  98 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // stdafx.h : include file for standard system include files,
  12. //      or project specific include files that are used frequently,
  13. //      but are changed infrequently
  14.  
  15. #if !defined(AFX_STDAFX_H__2F015017_FB7C_11D1_B8AC_000021452DB6__INCLUDED_)
  16. #define AFX_STDAFX_H__2F015017_FB7C_11D1_B8AC_000021452DB6__INCLUDED_
  17.  
  18. #if _MSC_VER >= 1000
  19. #pragma once
  20. #endif // _MSC_VER >= 1000
  21.  
  22. #define STRICT
  23.  
  24. #include <afxwin.h>
  25. #include <afxext.h>         // MFC extensions
  26. #include <afxdisp.h>
  27. #include <afxcmn.h>            // MFC support for Windows Common Controls
  28.  
  29. #define _WIN32_WINNT 0x0400
  30. #define _ATL_APARTMENT_THREADED
  31.  
  32.  
  33. #include <atlbase.h>
  34. //You may derive a class from CComModule and use it if you want to override
  35. //something, but do not change the name of _Module
  36. extern CComModule _Module;
  37. #include <atlcom.h>
  38.  
  39. // Type definitions for pointers to call DBAPI's functions.
  40. #define DBAPI50    _T("DBAPI50")//# Non-localizable string#
  41. #define DBAPI60    _T("DBAPI60")//# Non-localizable string#
  42. #define DBAPI70    _T("DBAPI70")//# Non-localizable string#
  43. #define DBAPI80    _T("DBAPI80")//# Non-localizable string#
  44. #define DBAPI90    _T("DBAPI90")//# Non-localizable string#
  45. #define DBAPI10    _T("DBAPI10")//# Non-localizable string#
  46. #define DBAPI11    _T("DBAPI11")//# Non-localizable string#
  47. #define DBAPI12    _T("DBAPI12")//# Non-localizable string#
  48. #define DBAPI14    _T("DBAPI14")//# Non-localizable string#
  49.  
  50. typedef DWORD (__stdcall * GRAPHICFILEOPENEX)(long hG, long hDwg, long hApp, LPTSTR lpszFile, LPSTREAM lpStream, LPTSTR lpError, int nBufSize, DWORD dwFlags, LPARAM lParam, long lm);
  51. typedef long  (__stdcall * APPGETCURRENTAPP)(void);
  52. //typedef long  (__stdcall * APPDRAWINGNEWEX)(long hA, BOOL LoadTablesFromINI, LPUNKNOWN pUnkOuter, void** pInnerUnknown);
  53. typedef long  (__stdcall * APPDRAWINGNEWEX)(long hA, BOOL LoadTablesFromINI, LPUNKNOWN pUnkOuter, void** pInnerUnknown, BOOL bAddToApp);
  54. typedef void  (__stdcall * DRAWINGDISPOSE)(long& rl);
  55. typedef long  (__stdcall * DRAWINGGETGRAPHIC)(long d);
  56. typedef LPDISPATCH   (__stdcall * GRAPHICGETDISPATCH)(long g, LPDISPATCH* ppGraphics);
  57.  
  58.  
  59. #include <afxtempl.h>
  60.  
  61. // TurboCAD SDK: Interfaces for Imsigx objects
  62. #include "imsigx.h"
  63.  
  64. // MFC dual interface support
  65. //#include "mfcdual.h" 
  66.  
  67. #include "resource.h"
  68.  
  69. #define TYPELIB_MAJOR    1
  70. #define TYPELIB_MINOR    0
  71. #define NUM_TOOLS        1
  72.  
  73. #define CHECK_HRESULT(hr) if (FAILED(hr)) throw hr;
  74. #define CHECK_POINTER(p) if (p == NULL) throw E_OUTOFMEMORY;
  75. #define TRACE_EXCEPTION(f) TRACE1("Exception in %s\n", ##f);
  76.  
  77. #define RELEASE(pI) if (pI != NULL) {pI->Release(); pI = NULL;}
  78. #define ADDREF(pI) pI != NULL ? pI->AddRef() : 0;
  79.  
  80.  
  81. extern COleVariant varMissing;
  82. extern COleVariant varTrue;
  83. extern COleVariant varFalse;
  84.  
  85. #include <math.h>
  86. class CInsSmObjApp : public CWinApp
  87. {
  88. public:
  89.     virtual BOOL InitInstance();
  90.     virtual int ExitInstance();
  91.  
  92. };
  93.  
  94. //{{AFX_INSERT_LOCATION}}
  95. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  96.  
  97. #endif // !defined(AFX_STDAFX_H__2F015017_FB7C_11D1_B8AC_000021452DB6__INCLUDED)
  98.